地図:山梨県

説明

指定した座標に山梨県を描きます。map()のパラメーターにはX座標、Y座標、描画する色を指定します。

[以下のJavaScriptプログラムをダウンロード]

function map(x,y,c){var n=128;
uart(n,14,3,x,y,c,1,1,3,3,55,63,63,127);
uart(n,14,3,x+8,y,c,192,224,230,255,255,255,255,255);
uart(n,14,3,x+16,y,c,0,0,128,143,143,255,255,255);
uart(n,14,3,x+24,y,c,0,0,0,0,128,246,254,254);
y=y+8;
uart(n,14,3,x,y,c,255,63,63,127,255,127,127,63);
uart(n,14,3,x+8,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+16,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+24,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+32,y,c,0,0,128,192,224,252,252,252);
y=y+8;
uart(n,14,3,x,y,c,63,31,31,31,15,15,15,15);
uart(n,14,3,x+8,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+16,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+24,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+32,y,c,252,252,252,248,248,224,192,128);
y=y+8;
uart(n,14,3,x,y,c,31,15,15,31,31,31,15,0);
uart(n,14,3,x+8,y,c,255,255,254,254,254,254,254,252);
uart(n,14,3,x+16,y,c,255,127,127,15,6,0,0,0);
uart(n,14,3,x+24,y,c,254,252,252,248,0,0,0,0);
y=y+8;
uart(n,14,3,x+8,y,c,252,252,124,126,62,28,0,0);
y=y+8;
}
uart("PC CLEAR 0b\n");
map(0,0,1);

目次に戻る